<?php
/**
 * 用户购物车表model
 */
class RestaurantCartModel extends BaseModel{
	protected $tableName = 'restaurant_cart';
	protected $_link = array(
		'restaurant_goods' => array(
			'mapping_type' => BELONGS_TO,
			'mapping_name' => 'restaurant_goods',
			'class_name' => 'RestaurantGoods',
			'foreign_key' => 'goods_id',
			'mapping_fields' => 'price,goods_name,goods_logo,discount,goods_sum,category_id',
		),
	);
}